package com.tsxy.mapper;

import com.tsxy.controller.dto.BookFileRela;
import com.tsxy.entity.BookPictureRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 飞
 * @since 2022-03-05
 */
@Mapper
public interface BookPictureRelationMapper extends BaseMapper<BookPictureRelation> {

    Integer insertBatch(@Param("bookId") Integer bookId, @Param("fileIds") List<Integer> fileIds);

    List<BookFileRela> selectAllRelation();

    int insertListBath(@Param("relations") List<BookPictureRelation> relations);
}
